﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using BabyFood.Data;
using BabyFood.Services;
using BabyFood.Entities;

public partial class Controls_ControlBlogMod : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            HienThiTinTuc();
        }
    }
    private void HienThiTinTuc()
    {
        int TotalRows = 0;
        TList<TinTuc> TList_TinTuc = DataRepository.TinTucProvider.GetPaged("IdSubTinTuc=12 and Tinnong=1", "NgayCapNhat DESC", 0, 6, out TotalRows);
        dlBlog.DataSource = TList_TinTuc;
        dlBlog.DataBind();
    }
    public string GetTieuDe(object Char)
    {
        string s = Char.ToString();
        return Common.ConvertToUnSign(s);
    }
}